//package com.anxin.aop;
//
//
//
///**
// * @Desc 修订：处理被吞掉的异常
// * @Author BrightSpring
// * @Date 2022/3/1
// */
//@Slf4j
//@Component
//@Aspect
//public class LogAspect {
//
//
//    @Pointcut("within(@org.springframework.web.bind.annotation.RestController *)")
//    public void logAop() {
//    }
//
//    @Around("logAop()")
//    public Object around(ProceedingJoinPoint point) throws Throwable {
//        StopWatch stopWatch = new StopWatch();
//        Object response = null;
//        String logId = IdUtil.fastSimpleUUID();
//        try {
//            stopWatch.start();
//            HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
//            MethodSignature signature = (MethodSignature) point.getSignature();
//            String declaringTypeName = signature.getDeclaringTypeName();
//            String methodName = signature.getName();
//            log.info("==============================================业务请求=============================================" +
//                            " \n {},{}\n url={},logId={}\n,请求参数:\n{}",
//                    declaringTypeName, methodName, request.getRequestURI(), logId, point.getArgs());
//            //执行该方法
//            response = point.proceed();
//        } catch (Exception e) {
//            log.error("error--{}", e);
//            throw e;
//        } finally {
//            stopWatch.stop();
//            log.info("==============================================业务结束============================================= " +
//                            " \n logId={},响应时间:{}毫秒\n,响应内容:\n{}",
//                    logId, stopWatch.getTotalTimeMillis(), response);
//        }
//        return response;
//    }
//
//}